/**
 * 
 */
package com.tuscany.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.tuscany.ext.facade.UserFacade;

/**
 * @author selfly
 * 
 */
@Controller
public class UserController {
	
	@Autowired
	private UserFacade userFacadeBean;

	// 定义访问路径sample.action 请求方法类型
	@RequestMapping(value = "hello", method = RequestMethod.GET)
	public String hello(String name, ModelMap modelMap) {

		System.out.println("This is hello controller !");
		
		System.out.println(userFacadeBean.toString());
		
		modelMap.put("name", "liyd");

		return "hello";
	}

}
